package dao;


        import entity.Board;

        import java.util.List;


public interface IBoardDao {
    /**
     * 添加版块
     * @param boardName
     * @return
     */
    public int addBoard(String boardName);

    /**
     * 删除版块
     * @param boardId
     * @return
     */
    public int delBoard(int boardId);

    /**
     * 修改版块
     * @param boardName
     * @param boardId
     * @return
     */
    public int updateBoard(String boardName,int boardId);

    /**
     * 显示版块
     * @return
     */
    public List showAll();

    /**
     * 模糊查询
     * @param boardName
     * @return
     */
    public List keyShowAll(String boardName);

    /**
     * 获得版块id
     * @param boardId
     * @return
     */
    public Board getBoardId(int boardId);
}
